package com.spark.lola.entity.sup;

import com.baomidou.mybatisplus.annotation.TableName;
import com.spark.lola.constant.CertificationType;
import com.spark.lola.support.mybatis.entity.BaseModel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 认证信息
 * </p>
 *
 * @author dengyejun
 * @since 2020-05-06
 */
@TableName("sup_account_certification")
@ApiModel(value="AccountCertification对象", description="认证信息")
public class AccountCertification extends BaseModel implements Serializable {
    private static final long serialVersionUID=1L;
    public AccountCertification(){}
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "证件号码")
    private String idCardNumber;

    @ApiModelProperty(value = "身份证正面")
    private String identityCardImgFront;

    @ApiModelProperty(value = "手持身份证")
    private String identityCardImgInHand;

    @ApiModelProperty(value = "身份证反面")
    private String identityCardImgReverse;

    @ApiModelProperty(value = "真实姓名")
    private String realname;

    @ApiModelProperty(value = "用户id")
    private Long accountId;

    @ApiModelProperty(value = "证件类型 0:个人 1:个体户 2:企业")
    private Integer certifiedType= CertificationType.PERSONAL;

    @ApiModelProperty(value = "企业名称")
    private String companyName;

    @ApiModelProperty(value = "营业执照")
    private String license;

    @ApiModelProperty(value = "开户许可证")
    private String openingBankPermits;

    @ApiModelProperty(value = "税务登记证")
    private String taxRegistrationCertificate;

    @ApiModelProperty(value = "组织机构代码证")
    private String organizationCode;


    
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public String getIdCardNumber() {
        return idCardNumber;
    }

    public void setIdCardNumber(String idCardNumber) {
        this.idCardNumber = idCardNumber;
    }
    
    public String getIdentityCardImgFront() {
        return identityCardImgFront;
    }

    public void setIdentityCardImgFront(String identityCardImgFront) {
        this.identityCardImgFront = identityCardImgFront;
    }
    
    public String getIdentityCardImgInHand() {
        return identityCardImgInHand;
    }

    public void setIdentityCardImgInHand(String identityCardImgInHand) {
        this.identityCardImgInHand = identityCardImgInHand;
    }
    
    public String getIdentityCardImgReverse() {
        return identityCardImgReverse;
    }

    public void setIdentityCardImgReverse(String identityCardImgReverse) {
        this.identityCardImgReverse = identityCardImgReverse;
    }
    
    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }
    
    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }
    
    public Integer getCertifiedType() {
        return certifiedType;
    }

    public void setCertifiedType(Integer certifiedType) {
        this.certifiedType = certifiedType;
    }
    
    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
    
    public String getLicense() {
        return license;
    }

    public void setLicense(String license) {
        this.license = license;
    }
    
    public String getOpeningBankPermits() {
        return openingBankPermits;
    }

    public void setOpeningBankPermits(String openingBankPermits) {
        this.openingBankPermits = openingBankPermits;
    }
    
    public String getTaxRegistrationCertificate() {
        return taxRegistrationCertificate;
    }

    public void setTaxRegistrationCertificate(String taxRegistrationCertificate) {
        this.taxRegistrationCertificate = taxRegistrationCertificate;
    }
    
    public String getOrganizationCode() {
        return organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }

    @Override
    public String toString() {
        return "AccountCertification{" +
            "createTime=" + createTime +
            ", idCardNumber=" + idCardNumber +
            ", identityCardImgFront=" + identityCardImgFront +
            ", identityCardImgInHand=" + identityCardImgInHand +
            ", identityCardImgReverse=" + identityCardImgReverse +
            ", realname=" + realname +
            ", accountId=" + accountId +
            ", certifiedType=" + certifiedType +
            ", companyName=" + companyName +
            ", license=" + license +
            ", openingBankPermits=" + openingBankPermits +
            ", taxRegistrationCertificate=" + taxRegistrationCertificate +
            ", organizationCode=" + organizationCode +
        "}";
    }
}
